import request from "@/utils/request"
import { HeadersContentType } from "@/utils/request"
/**
 * @description 登录
 * @returns
 */
export function login(data) {
  return request({
    url: "/monster-im/auth/login",
    method: "post",
    headers: {
      "Content-Type": HeadersContentType.json
    },
    data
  })
}

/**
 * @description 注册
 * @returns
 */
export function register(data) {
  return request({
    url: "/monster-im/auth/register",
    method: "post",
    headers: {
      "Content-Type": HeadersContentType.json
    },
    data
  })
}
